<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业1</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="root">
        请输入张三的成绩:<input type="text" v-model="score" />

        <h1 v-show="score !== ''">张三的成绩{{ score>= 90 ? '优秀':score >= 75 ? '良好': score >= 60 ? '合格':'不合格' }}</h1>
    </div>

    <script>
        let root = new Vue({
            el:"#root",
            data:{
                score:""
            }
        })
    </script>
</body>
</html>